package com.innerex.inexclear.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.innerex.inexclear.core.service.ClearingTransactionManager;

public class ClearingTransactionList extends BasePage implements Serializable {

	private static final long serialVersionUID = 972359310602744018L;

	protected ClearingTransactionManager clearingTransactionManager;

	public ClearingTransactionList() {
		setSortColumn("product");
	}

	public void setClearingTransactionManager(
			ClearingTransactionManager transactionManager) {
		this.clearingTransactionManager = transactionManager;
	}

	/**
	 * Return the complete list of Transactions.
	 * 
	 * @return
	 */
	public List<?> getClearingTransactions() {
		return sort(clearingTransactionManager.getClearingTransactions());
	}
}
